#!/usr/bin/env bash
NP2_TESTS_BINARY_DIR="@CMAKE_CURRENT_BINARY_DIR@"
[ -z "$NP2_TESTS_BINARY_DIR" ] &&
        echo "Expected an argument with to the test directory" &&
        exit 1

for pidfile in $NP2_TESTS_BINARY_DIR/repositories/*/np2.pid
do
        [ -f "$pidfile" ] && kill "$(cat "$pidfile")"
done
exit 0
